import request from '@/utils/request'

export function getTrendsList(data) {
  return request({
    url: 'member/trends/getList',
    method: 'get',
	params: data
  })
}

export function publishTrends(data) {
  return request({
    url: 'member/trends/publish',
    method: 'post',
    data
  })
}

export function publishTrendsBatch(data) {
  return request({
    url: 'member/trends/publishBatch',
    method: 'post',
    data
  })
}

export function deleteTrends(data) {
  return request({
    url: 'member/trends/delete',
    method: 'post',
    params: {ids:data}
  })
}
export function deleteTrendsByGoodsId(data) {
  return request({
    url: 'member/trends/deleteTrendsByGoodsId',
    method: 'get',
    params: data
  })
}
export function deleteTrendsByDown(data) {
  return request({
    url: 'member/trends/deleteTrendsByDown',
    method: 'get',
    params: data
  })
}
export function getDownLoadInfo(data) {
  return request({
    url: 'member/trends/getDownLoadInfo',
    method: 'get',
    params: data
  })
}
export function createWatermark(data) {
  return request({
    url: 'member/trends/createWatermark',
    method: 'post',
    data
  })
}


export function getCommentList(data) {
  return request({
    url: 'member/trends/getCommentList',
    method: 'get',
		params: data,
     })
}

export function getTrendsDownloadNumApply(data) {
  return request({
    url: 'member/trends/getTrendsDownloadNumApply',
    method: 'get',
    params: data,
  })
}

export function getDownloadList(data) {
  return request({
    url: 'member/trends/getDownloadList',
    method: 'get',
    params: data,
  })
}

export function verifyTrendsDownloadNum(data) {
  return request({
    url: 'member/trends/editVerifyTrendsDownloadNum',
    method: 'post',
    params: data,
  })
}
export function editTrends(data) {
  return request({
    url: 'member/trends/editTrends',
    method: 'post',
    params: data,
  })
}

export function getDownloadWalkMemberSelector(query) {
  return request({
    url: '/member/walkMember/getSelector',
    method: 'get',
    params: query
  })
}




